package com.dragon.mmochat.model.enumType;

//此enum上线后不可更改或删除，只可增加
public enum MmochatGangMemberType {
	帮众(0), 精英(1), 副帮(2), 帮主(3);

	// 权限越大，值越大
	int value;

	MmochatGangMemberType(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public static MmochatGangMemberType get(int value) {
		for (MmochatGangMemberType type : MmochatGangMemberType.values()) {
			if (type.getValue() == value) {
				return type;
			}
		}
		return null;
	}
}
